<?php


namespace app\server\model;


use app\index\model\Base;//default 不变，不要改

class Servers extends Base
{
    protected  $pk = 's_id';
    public function serverClass()
    {
        return $this->belongsTo('ServerClass','sc_id','sc_id');
    }
    public function serverImg()
    {
        return $this->hasMany('ServerImg','s_id','s_id');
    }
}